package cn.edu.xmu.oomall.share.microservice;

import cn.edu.xmu.oomall.share.microservice.vo.SimpleShareActivityVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDateTime;
import java.util.List;

@FeignClient(name = "activity-service")
public interface ShareActivityService {
    @GetMapping("/internal/shops/{shopId}/shareactivities")
    InternalReturnObject<List<SimpleShareActivityVo>> getShareByShopId(@PathVariable(name = "shopId", required = true) Long shopId,
                                                                       @RequestParam(name = "productId", required = false) Long productId);
}
